-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce PillarboxPreloadManager
#726
Merged
StaehliJ
merged 23 commits into
main
from
709-redo-story-demo-with-preloadmanager-of-media3
Oct 14, 2024
Merged
Introduce PillarboxPreloadManager
#726
StaehliJ
merged 23 commits into
main
from
709-redo-story-demo-with-preloadmanager-of-media3
Oct 14, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 task
Code Coverage
Files
|
pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/layouts/OptimizedStory.kt
Fixed
Show fixed
Hide fixed
MGaetan89
force-pushed
the
709-redo-story-demo-with-preloadmanager-of-media3
branch
4 times, most recently
from
October 1, 2024 08:58
83df4bc
to
2c1c34d
Compare
MGaetan89
force-pushed
the
709-redo-story-demo-with-preloadmanager-of-media3
branch
from
October 3, 2024 07:32
5a2e70d
to
e77500c
Compare
StaehliJ
force-pushed
the
709-redo-story-demo-with-preloadmanager-of-media3
branch
from
October 9, 2024 13:32
30b7746
to
b8df2e4
Compare
MGaetan89
commented
Oct 9, 2024
pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/layouts/OptimizedStory.kt
Outdated
Show resolved
Hide resolved
StaehliJ
force-pushed
the
709-redo-story-demo-with-preloadmanager-of-media3
branch
from
October 10, 2024 13:16
7b4e09b
to
62f33c0
Compare
MGaetan89
force-pushed
the
709-redo-story-demo-with-preloadmanager-of-media3
branch
from
October 11, 2024 12:45
7feec9e
to
1a1a9fe
Compare
6 tasks
I've switched the runner for the Android Tests step to |
Looks like Google will make it easier to share parameters between the |
I've reverted my change to the runner. |
Fix recomposition by remembering the player.
MGaetan89
force-pushed
the
709-redo-story-demo-with-preloadmanager-of-media3
branch
from
October 14, 2024 08:53
cbc2f07
to
8ec2009
Compare
StaehliJ
approved these changes
Oct 14, 2024
StaehliJ
deleted the
709-redo-story-demo-with-preloadmanager-of-media3
branch
October 14, 2024 09:30
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request
Description
This PR introduces a
PillarboxPreloadManager
and related classes. It also updates theOptimizedStory
to use this new helper.The
PillarboxPreloadManager
takes the same arguments asDefaultPreloadManager
/PillarboxExoPlayer
, with the addition of aPlayerPool
. This allowsPillarboxPreloadManager
to create player on-demand, and reuse them if needed.Changes made
PillarboxPreloadManager
.PlayerPool
.PillarboxPreloadManager
.PillarboxRenderersFactory
.PillarboxTrackSelector
.StoryViewModel
to use the newPillarboxPreloadManager
.OptimizedStory
to scroll vertically instead of horizontally.StringUtil
inSimplePlayerViewModel
.Note
AndroidX Media3 1.5.0 introduces some changes regarding preload manager. In particular,
DefaultPreloadManager.Status.STAGE_LOADED_TO_POSITION_MS
will becomeDefaultPreloadManager.Status.STAGE_LOADED_FOR_DURATION_MS
, and will take milliseconds instead of microseconds.This can be addressed once AndroidX Media3 1.5.0 is stable.
Checklist
main
branch.